﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpecF.Reporting
{
    public class ConsoleReporter<T> : IReportingEngine
    {
        private SpecF<T> specF;

        public ConsoleReporter(SpecF<T> specF)
        {
            this.specF = specF;
        }

        public void Report()
        {
            //very simple Impl.
            Console.WriteLine("+-> Story For {0}", typeof(T).Name);
        }


        public void Report(string owner, List<string> expressionInformations)
        {
            if (!expressionInformations.Any())
                Console.WriteLine(string.Format("--> {0} {1}", owner, expressionInformations.FirstOrDefault()));
        }
    }
}
